import {Injectable} from "@angular/core";
import {Http, Response} from "@angular/http";
/**
 * Created by zhgk on 2016/9/20 0020.
 */

//Http请求服务,封装CURD
@Injectable()
export class HttpService {
    constructor(private http: Http) {

    }

    //Get请求
    query(url: string) {
        return this.http.get(url).map((r: Response) => r.json());
    }

    add() {

    }

    update() {

    }

    del() {

    }
}